import request from '@/utils/request'

// 获取订单的列表
export const getOrderList = (params) => {
  return request({
    method: 'get',
    url: '/order/list',
    params
  })
}

// 获取订单的列表
export const getOrderDetail = (id) => {
  return request({
    method: 'get',
    url: '/order/detail?id=' + id
  })
}

/* 获取首页数据 */
export const getHomeData = () => {
  return request({
    url: '/order/totaldata',
    method: 'get'
  })
}

/* 获取订单报表 */
export const getOrderTotal = (params) => {
  return request({
    url: '/order/ordertotal',
    method: 'get',
    params
  })
}
